/********常量数据*********/
/**
 * 用户ID
 * @type {number}
 */
const UID = parseInt($("#uid").val().toString());
/**
 * 访客ID
 * @type {number}
 */
const FKUID = parseInt($("#fk_uid").val().toString());
/**
 * 文件服务器地址
 * @type {string}
 */
const FILE_SERVER_ADDR = 'http://123.207.19.115:8888';
/**
 * 爬虫服务器地址
 * @type {string}
 */
const REPTILE_SERVER_ADDR ='http://123.207.19.115:5000/hot/index';
/********常量数据*********/



/********URL数据*********/
//默认URL
//页面
const INDEX = "/index";
const HOT_INDEX = '/hot';
const FORUM_INDEX = '/forum';
const SAFE_INDEX = '/safe';
const ERROR_INDEX = "/error";

//请求
const POST_LIST_OK = '/post/pages';
const SUM_POST_STATUS_OK = '/post/ok/sum';
const POST_HOT = '/post/hot';
const FORUM_LIST = '';
const FORUM_POST_LIST = '/forum/post/list';
const SUM_FORUM_POST= '/forum/post/nums';
const COLLECTION_FORUM_UIDS= '/collection/oid/ofid/';
const MESSAGE_NOTICE = '/notice';
const USER_LOGIN = '/user/login';
const USER_LOGOUT = '/user/logout';
const SEND_CODE = '/send/code/';
const CHECK_CODE = '/check/code';
const USER_REGISTER = '/user/register';




//需要session验证url

/**
 * 个人主页
 */
const USER_INDEX = '/user';
const USER_SET = '/user/set';

/**
 * 访客主页
 * @type {string}
 */
const VISITOR_INDEX ='/visitor/';

/**
 * 个人收藏页
 */
const COLLECTION_INDEX = '/home/collection/index';

/**
 * 个人帖库页
 */
const POST_REPO_INDEX = '/home/repo/index';

/**
 * 个人信息
 * @type {string}
 */
const USER_INFO = '';

/**
 * 更新昵称
 * @type {string}
 */
const USER_UPDATE_NICKNAME = '/user/update/nickname';

/**
 * 更新头像
 * @type {string}
 */
const USER_UPDATE_ICON = '/user/update/icon';

/**
 * 上传用户头像 url
 * @type {string}
 */
const UPLOAD_ICON= '/upload/icon';

/**
 * 更新密码
 * @type {string}
 */
const USER_UPDATE_PASSWORD = '/user/update/password';

/**
 * 发帖子/状态修改/删除操作
 */
const POST_ADD = '/post/add';
const UPDATE_POST_STATUS = '/post/update/status';
const POST_DEL = '/post/delete';

/**
 * 点赞/取消点赞操作
 */
const LIKES_ADD ='/likes/add';
const LIKES_DEL = '/likes/reduce';


/**
 * 评论/回复操作
 */




/**
 * 上传图片
 * @type {string}
 */
const UPLOAD_IMAGE = '/upload/postimage';

/**
 * 关注用户的用户ID集合 url
 * @type {string}
 */
const COLLECTION_USER_UIDS='/collection/oid/user/';
/**
 * 举报用户
 * @type {string}
 */
const REPORT_USER_ADD = '/report/add/u';

/**
 * 举报该用户的所有用户ID集合 url
 * @type {string}
 */
const REPORT_USER_UIDS = '/report/ouid/';

/**
 * 关注版块 url
 * @type {string}
 */
const COLLECTION_FORUM_ADD = '/collection/add/f';

/**
 * 关注用户 url
 * @type {string}
 */
const COLLECTION_USER_ADD = '/collection/add/u';

/**
 * 取消关注用户 url
 * @type {string}
 */
const COLLECTION_USER_DEL ='/collection/delete/u';

/**
 * 取消关注版块 url
 * @type {string}
 */
const COLLECTION_FORUM_DEL = '/collection/delete/f';

/**
 * 删除一条关注数据
 * @type {string}
 */
const COLLECTION_DEL = '/user/collections/cancal';

/**
 * 用户正常帖子列表
 * @type {string}
 */
const USER_POSTS_OK = '/user/post/list';

/**
 * 用户下的正常帖子数
 * @type {string}
 */

const SUM_USER_POST_OK = '/user/post/ok/sum';

/**
 * 用户帖子回收站
 * @type {string}
 */
const USER_POST_LIST_RECY ='/post/user/list/recy';

/**
 * 用户所有关注者
 * @type {string}
 */
const USER_FOLLOWERS = '/user/followers';

/**
 * 用户今日发帖
 * @type {string}
 */
const USER_POST_TODAY_NUM='/user/post/today/num';

/**
 * 用户全部可发贴
 * @type {string}
 */
const USER_POST_TOTAL_NUM='/user/post/total/num';

/**
 * 用户剩余可发贴数
 */
const USER_POST_RESIDUE_NUM='/user/post/residue/num';

/**
 * 用户关注的用户集合
 * @type {string}
 */
const USER_COLLECTION_USERS='/user/collection/users';

/**
 * 用户关注的版块集合
 * @type {string}
 */
const USER_COLLECTION_FORUMS='/user/collection/forums';

/**
 * 用户关注的帖子集合
 * @type {string}
 */
const USER_COLLECTION_POSTS='/user/collection/posts';


//需要权限验证url
